Implementation of a Task

نویسندگان

  • Peter Hofstee
  • Johan J. Lukkien
  • Jan L. A. van de Snepscheut
چکیده

In this paper we present a distributed algorithm to implement a task pool. The algorithm can be used to implement a processor farm, i.e., a collection of processes that consume tasks from the task pool and possibly produce tasks into it. There are no restrictions on which process consumes which task nor on the order in which tasks are processed. The algorithm takes care of the distribution of the tasks over the processes and ensures load balancing. We derive the algorithm by transforming a sequential algorithm into a distributed one. The transformation is guided by the distribution of the data over processes. First we discuss the case of two processes, and then the general case of one or more processes. For the sequential part of the algorithms, we use Edsger W. Dijkstra's guarded command language 1]. For statements S0 and S1, statement S0kS1 denotes their concurrent execution. The constituents S0 and S1 are then called processes. The statements may share variables (cf. 5]). We transform our algorithms in such a way, however, that the nal code contains no shared variables and all synchronization and communication is performed by message passing. The semantics of the message passing primitives is as described in 4]. The main diierence with C.A.R. Hoare's proposal in 2] is in the naming of channels rather than processes. In 3], the same author proposes to name channels instead of processes in communication commands, but diiers from our notation by using one name per channel instead of our two: output command R!E in one process is paired with input command L?v in another process by declaring the pair (R; L) to be a channel between the two processes. Each channel is between two processes only. When declaring (R; L) to be a channel, we write the name on which the output actions are performed rst and the name on which the input actions are performed last. For an arbitrary command A, let c A denote the number of completed A actions, i.e., the number of times that command A has been executed since initiation of the program's execution. The synchronization requirement (cf. 4]) fulllled by a channel (R; L) is that c R = c L 0

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Iranian English Language Teachers’ Perception of Task-based Language Teaching (TBLT) Principles and Challenges to its Implementation

This paper presents the findings of a study on Iranian  English language teachers’ understanding of  Task-based language teaching (TBLT) principles and  perceived challenges of TBLT implementation in Iran. The data obtained from 100 respondents on a 39-item survey instrument and four essay questions analyzed through frequency statistics revealed that nearly 70 percent of teachers are cognizant ...

متن کامل

The relationship between task repetition and language proficiency

Task  repetition  is  now  considered  as  an  important  task-based  implementation  variable  which can affect complexity, accuracy, and fluency of L2 speech. However, in order to move towards theorizing  the  role  of  task  repetition  in  second  language  acquisition,  it  is  necessary  that individual variables be taken into account. The present study aimed to investigate the way task r...

متن کامل

Orchestrating Task Planning in Writing: The Impact of Pre-Task Planning and Within-Task Planning on Fluency, Accuracy, and Complexity of Iranian EFL Learners’ Writing

Building on Robinson’s (2001, 2003) Cognition Hypothesis, Skehan’s (1998) Limited Attentional Capacity Model, and Kellog’s (1986) model of writing, this study examined the effect of task planning on the fluency, accuracy, and complexity of 60 Iranian EFL learners’ argumentative and narrative writings under different planning conditions. A quasi-experimental design with three levels of planning ...

متن کامل

Applicability Issues with TBLT in EFL Contexts

This paper examines the theoretical rationales and practical aspects of task-based language teaching (TBLT) with particular reference to research findings in EFL/ESL contexts. The definitional scope of the term ‘task’, polarizations in terms of task vs. non-task, and its relation to different language teaching approaches have engendered conceptual and methodological ambiguities.  Moreover, fact...

متن کامل

“Horses for Courses”; Comment on “Translating Evidence Into Healthcare Policy and Practice: Single Versus Multi-Faceted Implementation Strategies – Is There a Simple Answer to a Complex Question?”

This commentary considers the vexed question of whether or not we should be spending time and resources on using multifaceted interventions to undertake implementation of evidence in healthcare. A review of systematic reviews has suggested that simple interventions may be just as effective as those taking a multifaceted approach. Taking cognisance of the Promoting Action on Research Implementat...

متن کامل

An Implementation Model for Courses in Human Resource Training

An Implementation Model for Courses in Human Resource Training M. Sami'ee Zafarghandi, Ph.D. To arrive at an effective model for implementing courses in human resource training different approaches to this task were critically reviewed and their constructive aspects reutilized. The new approach was then tested to identify any probable defect. The final model consists of basic elem...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991